namespace Cos.Core.NHibernate
{
    #region Usings

    using System;
    using System.Collections.Generic;

    #endregion

    public class SubmissionDataModel
    {
        #region Constructors and Destructors

        public SubmissionDataModel() {}

        #endregion

        #region Properties

        public virtual string CultureCode { get; set; }

        public virtual string Email { get; set; }

        public virtual int FormId { get; set; }

        public virtual int Id { get; set; }

        public virtual string IP { get; set; }

        public virtual string PageUrl { get; set; }

        public virtual string ReferenceUrl { get; set; }

        public virtual DateTime SubmissionDate { get; set; }

        //public virtual IEnumerable<SubmissionValueDataModel> SubmissionValues { get; set; }

        public virtual string UserName { get; set; }

        public virtual Guid? UserPKID { get; set; }

        public virtual string UserAgent { get; set; }

        #endregion

        #region Object Overrides

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as SubmissionDataModel;

            return model != null;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }

        #endregion
    }
}